function Coin(id, points, marker) {
	this.id = id;
	this.points = points;
	this.marker = marker;
}
function Question(id, points, marker, question, option1, option2, option3, rightAnswer, associatedBonuses) {
	this.id = id;
	this.points = points;
	this.marker = marker;
	this.question = question;
	this.option1 = option1;
	this.option2 = option2;
	this.option3 = option3;
	this.rightAnswer = rightAnswer;
	this.associatedBonuses = associatedBonuses;
	
	this.getAssociatedBonuses = function() {
		return jQuery.grep(this.associatedBonuses, function(n, i) {
			return n != null;
		})
	}
}
function Bonus(id, points, marker, associatedQuestion) {
	this.id = id;
	this.points = points;
	this.marker = marker;
	this.associatedQuestion = associatedQuestion;
}
function Game(maxPlayers, latitude, longitude, city, pointsToWin) {
	this.maxPlayers = maxPlayers;
	this.latitude = latitude;
	this.longitude = longitude;
	this.city = city;
	this.pointsToWin = pointsToWin;
	this.items = new Array();
	
	this.getItems = function() {
		return jQuery.grep(this.items, function(n, i) {
			return n != null;
		})
	}
}